
<div class="modal" ng-controller="KisBpmFormKeyPopupCrtl">
    <div class="modal-dialog modal-wide">
        <div class="modal-content">
            <div class="modal-header" ng-if="popup.state != 'newForm'">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
                <h2>
                    {{'PROPERTY.FORMKEY.TITLE' | translate}}
                </h2>
            </div>
            
            <div class="modal-body-with-overflow">
                <div class="detail-group clearfix">
                    <div class="col-xs-12">
                         <h5>{{'PROPERTY.FORMKEY.FORMNAME' | translate}} <input type="text" ng-model="formName" value=""/> {{'PROPERTY.FORMKEY.FORMKEY' | translate}} <input type="text" ng-model="formKey" value=""/> <button ng-click="search()" class="btn btn-primary" translate>PROPERTY.FORMKEY.FORMSEARCH</button></h5> 
                    </div>
                </div>
                <div class="detail-group clearfix">
                    <table class="table table-striped">
				        <thead>
				            <tr>
				                <td>&nbsp;</td>
				                <td>{{'PROPERTY.FORMKEY.FORMNAME' | translate}}</td>
				                <td>{{'PROPERTY.FORMKEY.FORMKEY' | translate}}</td>
				                <td>{{'PROPERTY.FORMKEY.FORMURL' | translate}}</td>
				                <td>{{'PROPERTY.FORMKEY.FORMMSURL' | translate}}</td>
				            </tr>
				        </thead>
				        <tbody>
				            <tr ng-repeat="ft in templates">
				                <td> <input type="checkbox" value="{{ft.keyVal}}"  name="formCkeck"/></td>
				                <td>{{ft.name}}</td>
				                <td>{{ft.keyVal}}</td>
				                <td>{{ft.url}}</td>
				                <td>{{ft.microServiceAddress}}</td>
				            </tr>
				        </tbody>
				    </table>
                </div>
            </div>
            
            <div class="modal-footer" >
            	<button ng-click="cancel()" class="btn btn-primary" translate>GENERAL.ACTION.CANCEL</button>
                <button ng-disabled="state.formError" ng-click="save()" class="btn btn-primary" translate>GENERAL.ACTION.SAVE</button>
            </div>
            
        </div>
    </div>
</div>